EXTRA_DIST = \
		PROTOCOL

pkgdir = $(libdir)/gaim

QQSOURCES = qq.h qq.c \
						crypt.h crypt.c \
						infodlg.h infodlg.c \
						char_conv.h char_conv.c \
						misc.h misc.c common.h

AM_CFLAGS = $(st)

libqq_la_LDFLAGS = -module -avoid-version `pkg-config --libs gtk+-2.0`

if STATIC_QQ

st = -DGAIM_STATIC_PRPL -DDATADIR=\"$(datadir)\"
noinst_LIBRARIES = libqq.a
libqq_a_SOURCES = $(QQSOURCES)
libqq_a_CFLAGS  = $(AM_CFLAGS)

else

st = -DDATADIR=\"$(datadir)\"
pkg_LTLIBRARIES   = libqq.la
libqq_la_SOURCES = $(QQSOURCES)

endif

AM_CPPFLAGS = `pkg-config --cflags gtk+-2.0` \
	-I$(top_srcdir)/src \
	$(GLIB_CFLAGS) \
	$(DEBUG_CFLAGS)
